import 'package:flutter/material.dart';
import 'package:flutterdemo/pages/tab1/fullscreen/fullScreenAdapter.dart';
import 'package:flutterdemo/pages/tab1/fullscreen/fullScreenMediaquery.dart';
import 'package:flutterdemo/pages/tab1/fullscreen/screenMediaqueryremovePadding.dart';

class FullScreen extends StatefulWidget {
  FullScreen({Key key}) : super(key: key);

  _FullScreenState createState() => _FullScreenState();
}

class _FullScreenState extends State<FullScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('FullScreen'),
      ),
      body: ListView(
        children: <Widget>[
          ListTile(
            title: Text('全面屏适配 SafeArea'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => FullScreenAdapter(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('全面屏适配 mediaquery'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => FullScreenMediaquery(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('全面屏适配 screenMediaqueryremovePadding'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) =>
                      FullScreenMediaqueryremovePadding(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('折叠屏适配'),
            onTap: () {},
          ),
        ],
      ),
    );
  }
}
